package me.send.data.service.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import me.send.business.base.Pager;
import me.send.data.service.mapper.UserRechargeListMapper;
import me.send.data.service.pojo.UserRechargeList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserRechargeListService {
    @Autowired
    private UserRechargeListMapper userRechargeListMapper;
    
   
    // 使用分页查询
    public List<UserRechargeList> list(String listCode,
    		Integer status,Pager page) {
    	Map<String, Object> parameter = new HashMap<String, Object>();
    	parameter.put("listCode", listCode);
    	parameter.put("status", status);
    	parameter.put("page", page);
    	List<UserRechargeList> rows = userRechargeListMapper.list(parameter);
    	return rows;
    }
    public Integer count(String listCode,
    		Integer status) {
    	Map<String, Object> parameter = new HashMap<String, Object>();
    	parameter.put("listCode", listCode);
    	parameter.put("status", status);
    	Integer rows = userRechargeListMapper.count(parameter);
    	return rows;
    }
    
    public void deteleBylistId(int listId){
    	userRechargeListMapper.deteleBylistId(listId);
    }
    
    public UserRechargeList queryBylistId(int listId){
    	return userRechargeListMapper.queryBylistId(listId);
    }
   
    public void update(UserRechargeList recharge){
    	userRechargeListMapper.update(recharge);
    }
    public void insert(UserRechargeList recharge){
    	userRechargeListMapper.insert(recharge);
    }
    
    
   
}
